/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.partaljevic.tapestry.gambling.service;

import com.partaljevic.gambling.Customer;
import java.io.Serializable;
import java.util.Collection;
import org.apache.tapestry5.hibernate.annotations.CommitAfter;

/**
 *
 * @author Danilo
 */
public interface Customers {


    @CommitAfter
    Customer save(Customer customer);
    @CommitAfter
    void update(Customer customer);
    Collection<Customer> retrieve();
    Collection<Customer> retrieveCustomers();
    Customer retrieve(Serializable id);
    @CommitAfter
    void deleteCustomer(Customer customer);

}
